Skip to content

expose eigsh paramters#113

Merged
m-reuter merged 5 commits intoDeep-MI:mainfrom
m-reuter:eigsh
Mar 16, 2026
Merged

expose eigsh paramters#113
m-reuter merged 5 commits intoDeep-MI:mainfrom
m-reuter:eigsh

Conversation

@m-reuter
Copy link
Member

See #112

@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.04%. Comparing base (431dd33) to head (7fa3d37).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
lapy/solver.py 84.61% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #113      +/-   ##
==========================================
+ Coverage   49.96%   50.04%   +0.07%     
==========================================
  Files          15       15              
  Lines        3144     3153       +9     
  Branches      412      414       +2     
==========================================
+ Hits         1571     1578       +7     
- Misses       1425     1426       +1     
- Partials      148      149       +1     
Flag Coverage Δ
unittests 50.04% <84.61%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Solver.eigs() to expose additional scipy.sparse.linalg.eigsh() parameters aimed at reproducibility and flexibility, and adds tests around the new behavior (see #112).

Changes:

  • Extend Solver.eigs() with which, v0, mode, and rng parameters and always sort returned eigenpairs.
  • Add unit tests validating reproducibility via rng and precedence of explicit v0.
  • Minor doc/docstring cleanups (numpydoc section underline, remove unused pandas intersphinx mapping).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
lapy/solver.py Exposes additional eigsh parameters, adds SciPy-version-dependent rng handling, and sorts eigenpairs for consistent output ordering.
lapy/utils/tests/test_solver.py Adds tests for deterministic eigensolver outputs using rng and v0.
lapy/utils/_imports.py Fixes numpydoc “Raises” underline formatting.
doc/conf.py Removes the pandas intersphinx mapping (no remaining references found).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@m-reuter m-reuter merged commit dcacc4a into Deep-MI:main Mar 16, 2026
29 checks passed
@m-reuter m-reuter deleted the eigsh branch March 16, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants